<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
 <meta charset="UTF-8"> 
  5  +    <title>表格及表单元素练习</title> 
  6  +</head> 
  7  + 
  8  +<body> 
  9  +    <h1>表格及表单元素练习</h1> 
  10  +    <h2>表格</h2> 
  11  +    <table border="1"> 
  12  +        <caption> 
  13  +            <p>表格标题</p> 
  14  +        </caption> 
  15  +        <tr> 
  16  +            <th>1-1</th> 
  17  +            <th>1-2</th> 
  18  +            <th>1-3</th> 
  19  +        </tr> 
  20  +        <tr> 
  21  +            <td>2-1</td> 
  22  +            <td>2-2</td> 
  23  +            <td>2-3</td> 
  24  +        </tr> 
  25  +        <tr> 
  26  +            <td>3-1</td> 
  27  +            <td>3-2</td> 
  28  +            <td>3-3</td> 
  29  +        </tr> 
  30  +    </table> 
  31  +    <h2>表单</h2> 
  32  +    <h3>百度搜索</h3> 
  33  +    <form action="https://www.baidu.com/s"> 
  34  +        <input type="text" name='wd'> 
  35  +        <input type="submit" value="搜索"> 
  36  +    </form> 
  37  +    <h3>京东搜索</h3> 
  38  +    <form action="https://search.jd.com/Search"> 
  39  +        <label for="">请输入商品信息</label> 
  40  +        <input type="text" name='keyword' placeholder="请输入商品信息"> 
  41  +        <input type="submit" value="搜索"> 
  42  +    </form> 
  43  +    <h3>注册表单</h3> 
  44  +    <form action="https://www.baidu.com/s"> 
  45  +        <label>邮箱</label> 
  46  +        <input type="email" name='email' placeholder="请输入您常用的邮箱"> 
  47  +        <label>密码</label> 
  48  +        <input type="password" name='password1' placeholder="请输入密码"> 
  49  +        <label>再次确认密码</label> 
  50  +        <input type="password" name='password2' placeholder="请输入密码"> 
  51  +        <input type="radio" name="sex" id="" value="男性">男性 
  52  +        <input type="radio" name="sex" id="" value="女性">女性 
  53  +        <input type="date"> 
  54  +        <input type="submit" value="注册"> 
  55 
 
 +    </form> 

<body>
</body>
</html>